from PySide2.QtWidgets import *
from PySide2.QtCore import Qt
from PySide2.QtCore import *
from PySide2.QtGui import *
from app.view import ViewFactory

def APP01_01_01():
    mainView:ViewFactory.MyMainView = ViewFactory.MyMainView.view_dict.get("myMainView")
    if mainView.view_dict.__contains__("New"):
        print(1)
        dialog:QDialog =mainView.view_dict.get("New")
        dialog.exec()
    else:
        print(2)
        dialog = QDialog(mainView)
        dialog.setWindowModality(Qt.ApplicationModal)
        dialog.setWindowTitle("New")
        # 大小
        dialog.resize(1060,1001)
        # 位置
        dialog.move(430,0)
        dialog.setWindowFlags(dialog.windowFlags()&~Qt.WindowContextHelpButtonHint)
        mainView.view_dict["New"] = dialog
        dialog.exec()




def APP01_01_02():
    print("APP01_01_02")

def APP01_01_03():
    print("APP01_01_03")

def APP01_01_04():
    print("APP01_01_04")

def APP01_01_05():
    print("APP01_01_05")

def APP01_01_06():
    print("APP01_01_06")

def APP01_02_01():
    print("APP01_02_01")

def APP01_02_02():
    print("APP01_02_02")

def APP01_02_03():
    print("APP01_02_03")

def APP01_02_04():
    print("APP01_02_04")

def APP01_02_05():
    print("APP01_02_05")

def APP01_02_06():
    print("APP01_02_06")

def APP01_02_07():
    print("APP01_02_07")

def APP01_02_08():
    print("APP01_02_08")

def APP01_02_09():
    print("APP01_02_09")

def APP01_02_10():
    print("APP01_02_10")

def APP01_02_11():
    print("APP01_02_11")

def APP01_03_01():
    print("APP01_03_01")

def APP01_03_02():
    print("APP01_03_02")

def APP01_03_03():
    print("APP01_03_03")

def APP01_03_04():
    print("APP01_03_04")

def APP01_03_05():
    print("APP01_03_05")

def APP01_04_01():
    print("APP01_04_01")

def APP01_04_02():
    print("APP01_04_02")

def APP01_04_03():
    print("APP01_04_03")

def APP01_05_01():
    print("APP01_05_01")

def APP01_05_01():
    print("APP01_05_01")

def APP01_05_02():
    print("APP01_05_02")

def APP01_05_03():
    print("APP01_05_03")

def APP01_05_04():
    print("APP01_05_04")

def APP01_06_01():
    print("APP01_06_01")

def APP01_06_01_01():
    print("APP01_06_01_01")

def APP01_06_01_02():
    print("APP01_06_01_02")

def APP01_06_01_03():
    print("APP01_06_01_03")

def APP01_06_02():
    print("APP01_06_02")